package com.yuntu.dao;

import com.yuntu.pojo.Dev;
import com.yuntu.tools.PageUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DevMapper {
    //登录
    Dev getLoginUser(@Param("devCode") String devCode) throws Exception;
    //查询全部信息
    List<Dev> getDevList() throws Exception;
    //添加
    int addDevType(Dev dev)throws Exception;
    //删除
    int deleteDevById(@Param("id") int id)throws Exception;
    //根据id查询
    Dev getDevById(@Param("id") int id)throws Exception;
    //修改
    int updateDev(Dev peitems)throws Exception;
    //分页信息
    List<Dev> getPageAll(PageUtil<Dev> pageUtil) throws Exception;
    //获取总数量
    int getCount() throws Exception;
}
